﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminUserList.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <!--#include virtual="include/Head.ascx"-->
    <script type="text/javascript">
        function doDelete(strID, strName) {
            if (confirm('Bạn có thực sự muốn xóa tài khoản: ' + strName + ' ?')) {

                window.location.href = "AdminUserList.aspx?action=delete&AdminUserID=" + strID;
            }
        }
    </script>
</head>
<body>
    <div id="body-wrapper">
        <div id="header">
            <!--#include virtual="include/top.ascx"-->
        </div>
        <div id="main-content1">
            <div class="">
            </div>
            <h2>
                Account list</h2>
            <div class="clear">
            </div>
            <div class="content-box">
                <div class="content-box-header">
                    <a class="button" href="AdminUser.aspx" style="float: right; margin: 9px 15px;">Add
                        New </a>
                    <div class="clear">
                    </div>
                </div>
                <form name="frmEdit" id="frmEdit" method="Post" action="page.aspx" enctype="multipart/form-data">
                <fieldset>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0" class="adminlist">
                        <thead>
                            <tr style="background: #CCC;">
                                <th align="center">
                                    Index
                                </th>
                                <th align="center">
                                    User Name
                                </th>
                                <th align="center">
                                    Password
                                </th>
                                <th align="center">
                                    Creation time
                                </th>
                                <%if ((Session["superadmin"] != null) && (int.Parse(Session["superadmin"].ToString()) >= 3))
                                  {%>
                                <th align="center">
                                    Action Log
                                </th>
                                <th align="center">
                                    Groups
                                </th>
                                <th align="center">
                                    Action
                                </th>
                                <%} %>
                            </tr>
                        </thead>
                        <tbody>
                            <%loadAdminUserListContent(); %>
                        </tbody>
                    </table>
                </fieldset>
                <div class="clear">
                </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
